<?php
require_once 'db_conn.php';
header("content-type:text/html;charset=utf-8");
$id = $_POST['id'];
$id = intval($id);
$Imgurl = $_POST['Imgurl'];
$linkurl = $_POST['linkurl'];
$txt = $_POST['txt'];


$sql = "
UPDATE  `db_sente`.`tb_ad` 
SET
`Imgurl` = '$Imgurl' ,
`linkurl` = '$linkurl' ,
`txt` = '$txt' ,
`isshow` = '1' ,
WHERE `tb_ad`.`id` = $id;
 ";

$result = $conn->query($sql);
//print_r($result);
header("location:adv.php");
